package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_QUARTZ_PARAM"
 *     
*/
public class CcpQuartzParam implements Serializable {

    /** identifier field */
    private String cqpGuid;

    /** nullable persistent field */
    private String paramName;

    /** nullable persistent field */
    private Integer paramOrder;

    /** nullable persistent field */
    private String paramRemark;

    /** nullable persistent field */
    private String cqjGuid;

    /** full constructor */
    public CcpQuartzParam(String cqpGuid, String paramName, Integer paramOrder, String paramRemark, String cqjGuid) {
        this.cqpGuid = cqpGuid;
        this.paramName = paramName;
        this.paramOrder = paramOrder;
        this.paramRemark = paramRemark;
        this.cqjGuid = cqjGuid;
    }

    /** default constructor */
    public CcpQuartzParam() {
    }

    /** minimal constructor */
    public CcpQuartzParam(String cqpGuid) {
        this.cqpGuid = cqpGuid;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="CQP_GUID"
     *         
     */
    public String getCqpGuid() {
        return this.cqpGuid;
    }

    public void setCqpGuid(String cqpGuid) {
        this.cqpGuid = cqpGuid;
    }

    /** 
     *            @hibernate.property
     *             column="PARAM_NAME"
     *             length="50"
     *         
     */
    public String getParamName() {
        return this.paramName;
    }

    public void setParamName(String paramName) {
        this.paramName = paramName;
    }

    /** 
     *            @hibernate.property
     *             column="PARAM_ORDER"
     *             length="2"
     *         
     */
    public Integer getParamOrder() {
        return this.paramOrder;
    }

    public void setParamOrder(Integer paramOrder) {
        this.paramOrder = paramOrder;
    }

    /** 
     *            @hibernate.property
     *             column="PARAM_REMARK"
     *             length="100"
     *         
     */
    public String getParamRemark() {
        return this.paramRemark;
    }

    public void setParamRemark(String paramRemark) {
        this.paramRemark = paramRemark;
    }

    /** 
     *            @hibernate.property
     *             column="CQJ_GUID"
     *             length="32"
     *         
     */
    public String getCqjGuid() {
        return this.cqjGuid;
    }

    public void setCqjGuid(String cqjGuid) {
        this.cqjGuid = cqjGuid;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("cqpGuid", getCqpGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpQuartzParam) ) return false;
        CcpQuartzParam castOther = (CcpQuartzParam) other;
        return new EqualsBuilder()
            .append(this.getCqpGuid(), castOther.getCqpGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getCqpGuid())
            .toHashCode();
    }

}
